<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        /**
         * 函数定义
         * function 函数名称(参数1，，，，参数n){
         *     php代码块
         * }
         * 
         * 调用函数
         * 函数名称(参数1，，，，参数n);
         */
         function hello(){
            echo "hello 函数！";
         }
         
         hello();
         
         function zhaohu($person){
             echo "hello $person";
         }
         zhaohu("张三");
         
         function wenlu($person ,$where){
             echo "hello $person ,go to $where";
         }
         
         wenlu("小红","图书馆");
        ?>
    </body>
</html>
